home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2009 August / SAN CD 8-2009 CD-ROM 51.iso / pc / issueMedia / Software / PHDGuiding1.10Mac / PHD.app / Contents / Resources / cam_firewire.h next >
Encoding:
C/C++ Source or Header  |  2008-12-19  |  1.0 KB  |  46 lines

  1. /*
  2.  *  cam_firewire_OSX.h
  3.  *  PHD
  4.  *
  5.  *  Created by Craig Stark on 3/15/07.
  6.  *  Copyright 2007 Craig Stark, Stark Labs. All rights reserved.
  7.  *
  8.  */
  9.  
  10.  
  11. #ifndef FIREWIREDEF
  12. #define FIREWIREDEF
  13.  
  14. #if defined (__APPLE__)
  15. #include <dc1394/control.h>
  16. #include <dc1394/utils.h>
  17. #else
  18. #include "tisudshl.h" 
  19. #endif
  20.  
  21. class Camera_FirewireClass : public GuideCamera {
  22. public:
  23.     bool    CaptureFull(int duration, usImage& img, bool recon);    // Captures a full-res shot
  24. //    bool    CaptureCrop(int duration, usImage& img);    // Captures a cropped portion
  25.     bool    Connect();
  26.     bool    Disconnect();
  27.     void    InitCapture();
  28. //    bool    PulseGuideScope(int direction, int duration);
  29.     
  30.     
  31.     Camera_FirewireClass(); 
  32. //    ~Camera_FirewireClass(); 
  33. private:
  34. //    bool GenericCapture(int duration, usImage& img, int xsize, int ysize, int xpos, int ypos);
  35. #if defined (__APPLE__)
  36.     dc1394camera_t *camera;
  37. #else
  38.     DShowLib::Grabber* m_pGrabber;
  39.     DShowLib::tFrameHandlerSinkPtr pSink;
  40.     DShowLib::tIVCDAbsoluteValuePropertyPtr  m_pExposureAbs;
  41.     DShowLib::tIVCDRangePropertyPtr  m_pGain;
  42.     long GainMax;
  43. #endif
  44. };
  45. #endif
  46.